home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / config / i386-emul / makefile < prev    next >
Makefile  |  1996-10-25  |  1KB  |  66 lines

  1. # $Id: makefile,v 1.17 1996/10/25 14:31:58 aros Exp $
  2. TOP=../..
  3.  
  4. include $(TOP)/config/make.cfg
  5.  
  6. SPECIAL_CFLAGS = -I $(TOP)/exec
  7.  
  8. FILES = \
  9.     supervisor \
  10.     switch \
  11.     dispatch \
  12.     disable \
  13.     enable \
  14.     forbid \
  15.     permit \
  16.     preparecontext \
  17.     special \
  18.     semaphoreglue \
  19.     exception \
  20.     cachecleare \
  21.     cacheclearu \
  22.     cachecontrol \
  23.     cachepostdma \
  24.     cachepredma \
  25.     setsr \
  26.     getcc \
  27.     superstate \
  28.     userstate \
  29.     stackswap \
  30.     runprocess
  31.  
  32. all: setup $(TOP)/include/aros/machine.h machine.i \
  33.     $(foreach f,$(FILES),$(OSGENDIR)/$(f).o)
  34.  
  35. setup :
  36.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  37.  
  38. $(TOP)/include/aros/machine.h:
  39.     $(TOP)/scripts/makelinks . $(TOP)/include/aros machine.h
  40.  
  41. clean:
  42.     $(RM) $(TOP)/include/aros/machine.h
  43.  
  44. config:
  45.     @echo "Configuring for a x86 CPU..."
  46.  
  47. machine.i: geninc.c
  48.     $(CC) $(CFLAGS) -o geninc geninc.c
  49.     geninc > machine.i
  50.  
  51. $(OSGENDIR)/%.o: %.s machine.i
  52.     $(AS) $(AFLAGS) $< -c -o $@ 2>&1|tee $*.err
  53.     if test ! -s $*.err; then rm $*.err ; else true ; fi
  54.  
  55. $(OSGENDIR)/%.o: %.c
  56.     $(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
  57.     if test ! -s $*.err; then rm $*.err ; else true ; fi
  58.  
  59. $(OSGENDIR)/%.d: %.c $(TOP)/include/aros/machine.h
  60.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  61.     @$(RM) $@
  62.     @touch $@
  63.     $(MKDEPEND) -p$(OSGENDIR)/
  64.  
  65. include $(OSGENDIR)/geninc.d
  66.